package com.excesys.exsecs.energy.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@Data
@TableName("bum_pd_dev_enroll")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "设备注册表")
public class BumDevEnroll extends Model<BumDevEnroll> {

	/**
	 * 主键
	 */
	@TableId(type = IdType.AUTO)
	@Schema(description = "主键")
	private String id;


	@Schema(description = "设备编码")
	private String unitNo;

	@TableField(value = "dev_name", condition = SqlCondition.LIKE)
	@Schema(description = "设备名称")
	private String devName;

	@Schema(description = "资产型号")
	private String devType;

	@Schema(description = "资产型号名称")
	private String typeName;

	@Schema(description = "备注")
	private String remark;

	/**
	 * 创建人
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description="创建人")
	private String createBy;

	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description="创建时间")
	private LocalDateTime createTime;

	/**
	 * 更新人
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@Schema(description="更新人")
	private String updateBy;

	/**
	 * 更新时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@Schema(description="更新时间")
	private LocalDateTime updateTime;

}